home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG PD-ROM 1996 Fall
/
BMUG Fall'96 PD-ROM.iso
/
Education
/
Math
/
MathPad 2.4
/
intro help
/
intro help.rsrc
/
TEXT_135_Graphing Points.txt
< prev
Wrap
Text File
|
1996-03-26
|
452b
|
17 lines
-- To plot points, make a list of 3 or more x,y coordinate pairs.
xy = {
{1, 2.3},
{2, 4.1},
{3, 6.4},
{4, 3.0},
{5, 1.5} }
plot xy
plotline xy -- To connect the points, use "plotline"
-- You can also plot a list of y values evenly spaced along x
ys = {1,2,3,4,5,6,7,6,5,4,3,2,1}
plot ys -- (triangle markers)
-- Lists of points can be read from a separate file using read(). See the doc files "Datafiles" and "Plotting" for more information.